package com.liang.jiekou.controller;


import com.liang.jiekou.entity.CMSMC;
import com.liang.jiekou.entity.CMSMV;
import com.liang.jiekou.service.CMSMVService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Api(tags = "员工控制器")
@RestController
@RequestMapping("/yg")
public class CMSMVController {
@Resource
private CMSMVService cmsmvService;


    @ApiOperation("根据员工编号查询相关信息")
    @GetMapping("/selectCMSMV")
    public CMSMV select(@RequestParam String MV001){
        return cmsmvService.select(MV001);
    }

    @ApiOperation("查询全部的员工信息")
    @GetMapping("/selectCMSMV/all")
    public List<CMSMV> selectall(){
        return cmsmvService.selectall();
    }
}
